package com.ww.springboot.boot.baseTest.design.adapter.impl;

import com.ww.springboot.boot.baseTest.design.adapter.Adapter;
import com.ww.springboot.boot.baseTest.design.adapter.Player;

/**
 * 描述：
 *
 * @author 🧑 ‍wanwei
 * @since 2022-03-04 11:54
 */
public class Mp3Player implements Player {

    @Override
    public String getType() {
        return "mp3";
    }

    @Override
    public void play(String type) {
        if (type.equalsIgnoreCase(getType())) {
            System.out.println("播放mp3......");
        }
    }
}
